<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>动画 | Qin-BookNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../note/css/viewport.html" />
    
    
    <link rel="prev" href="../../note/css/scss.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.8"
        data-chapter-title="动画"
        data-filepath="note/css/donghua.md"
        data-basepath="../.."
        data-revision="Wed Sep 20 2017 11:13:21 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="note/html/1.html">
            
                
                    <a href="../../note/html/1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="note/html/jianjie.html">
            
                
                    <a href="../../note/html/jianjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        HTML的简介和标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="note/html/emmet.html">
            
                
                    <a href="../../note/html/emmet.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        emmet
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="note/html/text.html">
            
                
                    <a href="../../note/html/text.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        实体字符与文本
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="note/html/yuyi.html">
            
                
                    <a href="../../note/html/yuyi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="note/html/biao.html">
            
                
                    <a href="../../note/html/biao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        表格
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="note/html/table.html">
            
                
                    <a href="../../note/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.1.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="note/html/form.html">
            
                
                    <a href="../../note/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.2.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="note/html/input.html">
            
                
                    <a href="../../note/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.3.</b>
                        
                        input属性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="note/html/lianlie.html">
            
                
                    <a href="../../note/html/lianlie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        链接和列表
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="note/html/libiao.html">
            
                
                    <a href="../../note/html/libiao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.1.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="note/html/lianjie.html">
            
                
                    <a href="../../note/html/lianjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.2.</b>
                        
                        超链接
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="note/html/media.html">
            
                
                    <a href="../../note/html/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        多媒体
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="note/html/audio.html">
            
                
                    <a href="../../note/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.1.</b>
                        
                        音频和视频
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="note/html/head.html">
            
                
                    <a href="../../note/html/head.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        head
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="note/html/meta.html">
            
                
                    <a href="../../note/html/meta.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.1.</b>
                        
                        meta标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="note/html/link.html">
            
                
                    <a href="../../note/html/link.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.2.</b>
                        
                        link标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="note/css/css.html">
            
                
                    <a href="../../note/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="note/css/xuanze.html">
            
                
                    <a href="../../note/css/xuanze.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="note/css/yuansu.html">
            
                
                    <a href="../../note/css/yuansu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="note/css/csxuanze.html">
            
                
                    <a href="../../note/css/csxuanze.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="note/css/ziyuan.html">
            
                
                    <a href="../../note/css/ziyuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        子元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="note/css/shuxing.html">
            
                
                    <a href="../../note/css/shuxing.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="note/css/weilei.html">
            
                
                    <a href="../../note/css/weilei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="note/css/duixiang.html">
            
                
                    <a href="../../note/css/duixiang.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="note/css/zi.html">
            
                
                    <a href="../../note/css/zi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        字体
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="note/css/font.html">
            
                
                    <a href="../../note/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        font
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="note/css/icon.html">
            
                
                    <a href="../../note/css/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="note/css/wenben.html">
            
                
                    <a href="../../note/css/wenben.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文本装饰
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="note/css/biankuan.html">
            
                
                    <a href="../../note/css/biankuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        border
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="note/css/border.html">
            
                
                    <a href="../../note/css/border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="note/css/tu.html">
            
                
                    <a href="../../note/css/tu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        圆角与背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="note/css/hezi.html">
            
                
                    <a href="../../note/css/hezi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="note/css/float.html">
            
                
                    <a href="../../note/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="note/css/position.html">
            
                
                    <a href="../../note/css/position.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="note/css/scss.html">
            
                
                    <a href="../../note/css/scss.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        SCSS
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.8" data-path="note/css/donghua.html">
            
                
                    <a href="../../note/css/donghua.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="note/css/viewport.html">
            
                
                    <a href="../../note/css/viewport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        viewport
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="note/css/buju.html">
            
                
                    <a href="../../note/css/buju.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="note/css/rem.html">
            
                
                    <a href="../../note/css/rem.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        rem的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="note/css/shan.html">
            
                
                    <a href="../../note/css/shan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        响应式布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="note/css/flex.html">
            
                
                    <a href="../../note/css/flex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.13.</b>
                        
                        flex
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="note/js/javascript.html">
            
                
                    <a href="../../note/js/javascript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        javascript解析器脚本
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="note/js/js.html">
            
                
                    <a href="../../note/js/js.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        什么是js
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="note/js/use.html">
            
                
                    <a href="../../note/js/use.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        js的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="note/js/computer.html">
            
                
                    <a href="../../note/js/computer.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="note/js/xunhuan.html">
            
                
                    <a href="../../note/js/xunhuan.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        判断与循环
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="note/js/function.html">
            
                
                    <a href="../../note/js/function.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        function函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="note/js/dom.html">
            
                
                    <a href="../../note/js/dom.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.6.</b>
                        
                        DOM
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="note/js/array.html">
            
                
                    <a href="../../note/js/array.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.7.</b>
                        
                        Array
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="note/js/math.html">
            
                
                    <a href="../../note/js/math.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.8.</b>
                        
                        Math
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="note/js/Date.html">
            
                
                    <a href="../../note/js/Date.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.9.</b>
                        
                        Date
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Qin-BookNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x52A8;&#x753B;">&#x52A8;&#x753B;</h1>
<h2 id="tranfrom&#x53D8;&#x5F62;">tranfrom&#x53D8;&#x5F62;</h2>
<p>&#x6539;&#x53D8;&#x5143;&#x7D20;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x900F;&#x660E;&#xFF0C;&#x65CB;&#x8F6C;&#x89D2;&#x5EA6;&#xFF0C;&#x626D;&#x66F2;&#x5EA6;</p>
<p>&#x8BED;&#x6CD5;&#xFF1A;tranfrom:none;</p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x503C;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">translate()</td>
<td style="text-align:center">&#x5E73;&#x79FB;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x503C;&#x4E3A;x&#x8F74;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x4E3A;y&#x8F74;&#xFF0C;&#x6CA1;&#x6709;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#xFF0C;&#x90A3;&#x7B2C;&#x4E8C;&#x4E2A;&#x4E3A;0</td>
</tr>
<tr>
<td style="text-align:center">transform-origin</td>
<td style="text-align:center">&#x9ED8;&#x8BA4;&#x503C;&#x4E3A;x&#x8F74;&#x8DDF;y&#x8F74;&#x7684;50%</td>
</tr>
<tr>
<td style="text-align:center">tranfromX</td>
<td style="text-align:center">&#x6C34;&#x5E73;&#x65B9;&#x5411;&#x5E73;&#x79FB;</td>
</tr>
<tr>
<td style="text-align:center">tranfrom</td>
<td style="text-align:center">&#x5782;&#x76F4;&#x65B9;&#x5411;&#x5E73;&#x79FB;</td>
</tr>
<tr>
<td style="text-align:center">rote()</td>
<td style="text-align:center">&#x65CB;&#x8F6C;&#xFF0C;&#x9700;&#x5148;&#x6709;tranfrom-origin&#x5B9A;&#x4E49;</td>
</tr>
<tr>
<td style="text-align:center">scale()</td>
<td style="text-align:center">&#x7F29;&#x653E;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x503C;&#x4E3A;x&#x8F74;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x4E3A;y&#x8F74;&#xFF0C;&#x53EA;&#x8981;&#x4E00;&#x4E2A;&#x503C;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E8C;&#x4E2A;&#x90FD;&#x4E00;&#x6837;</td>
</tr>
<tr>
<td style="text-align:center">skew()</td>
<td style="text-align:center">&#x659C;&#x5207;&#x626D;&#x66F2;&#xFF0C;&#x7B2C;&#x4E00;&#x4E2A;&#x503C;&#x4E3A;x&#x8F74;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x4E3A;y&#x8F74;&#xFF0C;&#x6CA1;&#x6709;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#xFF0C;&#x90A3;&#x7B2C;&#x4E8C;&#x4E2A;&#x4E3A;0</td>
</tr>
<tr>
<td style="text-align:center">translate3d()</td>
<td style="text-align:center">3D&#x4F4D;&#x79FB;&#xFF0C;&#x4E00;&#x503C;&#x4E3A;x&#x8F74;&#xFF0C;&#x4E8C;&#x503C;&#x4E3A;y&#x8F74;&#xFF0C;&#x4E09;&#x503C;&#x4E3A;z&#x8F74;</td>
</tr>
<tr>
<td style="text-align:center">matrix3d()</td>
<td style="text-align:center">&#x4EE5;&#x4E00;&#x4E2A;4x4&#x77E9;&#x9635;&#x7684;&#x5F62;&#x5F0F;&#x6307;&#x5B9A;&#x4E00;&#x4E2A;3D&#x53D8;&#x6362;</td>
</tr>
<tr>
<td style="text-align:center">perspective()</td>
<td style="text-align:center">&#x900F;&#x89C6;&#x8DDD;&#x79BB;</td>
</tr>
<tr>
<td style="text-align:center">rotate3d()</td>
<td style="text-align:center">3D&#x65CB;&#x8F6C;&#xFF0C;&#x4E00;&#x503C;&#x4E3A;x&#x8F74;&#xFF0C;&#x4E8C;&#x503C;&#x4E3A;y&#x8F74;&#xFF0C;&#x4E09;&#x503C;&#x4E3A;z&#x8F74;&#xFF0C;&#x56DB;&#x503C;&#x65CB;&#x8F6C;&#x89D2;&#x5EA6;&#xFF0C;&#x4E0D;&#x53EF;&#x7701;&#x7565;&#x53C2;&#x6570;</td>
</tr>
</tbody>
</table>
<h2 id="trantion&#x8FC7;&#x6E21;">trantion&#x8FC7;&#x6E21;</h2>
<p>&#x8BBE;&#x7F6E;&#x5BF9;&#x8C61;&#x53D8;&#x6362;&#x65F6;&#x7684;&#x8FC7;&#x6E21;
|&#x5C5E;&#x6027;|&#x503C;|
|:--:|:--:|
|transition-property|&#x8FC7;&#x6E21;&#x7684;&#x5C5E;&#x6027;&#xFF08;&#x76F4;&#x63A5;&#x7528;all&#x4EE3;&#x8868;&#x5168;&#x90E8;&#xFF09;|
|transition-timing-function|ease&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x9010;&#x6E10;&#x53D8;&#x6162;&#xFF09;cubic-bezier(0.25,0.1,0.25,1)&#xFF0C;linear&#xFF08;&#x5300;&#x901F;&#x8FC7;&#x6E21;&#x6548;&#x679C;&#xFF09;&#xFF0C;ease-in&#xFF08;&#x52A0;&#x901F;&#x7684;&#x8FC7;&#x6E21;&#x6548;&#x679C;&#xFF09;|
|transition-duration|&#x6301;&#x7EED;&#x65F6;&#x95F4;|
|transition-delay|&#x5EF6;&#x8FDF;&#x65F6;&#x95F4;|</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;test2&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>bgg<span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
</code></pre>
<pre><code class="lang-css"><span class="hljs-tag">div</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">200px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">200px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> orange</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">border</span>:<span class="hljs-value"> <span class="hljs-number">4px</span> solid green</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transition-duration</span>:<span class="hljs-value"><span class="hljs-number">3s</span> </span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transition-delay</span>:<span class="hljs-value"> <span class="hljs-number">200ms</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transition-timing-function</span>:<span class="hljs-value"><span class="hljs-number">1</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transition</span>:<span class="hljs-value"> all linear <span class="hljs-number">1</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform-origin</span>:<span class="hljs-value"> right bottom</span></span>;
    }</span>
<span class="hljs-class">.test2</span><span class="hljs-pseudo">:hover</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">scale</span>(<span class="hljs-number">2</span>)</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">rotate</span>(<span class="hljs-number">360deg</span>)</span></span>;
            }</span>
</code></pre>
<h2 id="animation&#x81EA;&#x5B9A;&#x4E49;&#x52A8;&#x753B;">animation&#x81EA;&#x5B9A;&#x4E49;&#x52A8;&#x753B;</h2>
<p>&#x4E0E;&#x89C4;&#x5219;@keyframes&#x914D;&#x5408;&#x4F7F;&#x7528;</p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x503C;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">animation-name</td>
<td style="text-align:center">&#x52A8;&#x753B;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td style="text-align:center">animation-fill-mode</td>
<td style="text-align:center">&#x52A8;&#x753B;&#x6700;&#x7EC8;&#x4FDD;&#x6301;&#x4EC0;&#x4E48;&#x6548;&#x679C;</td>
</tr>
<tr>
<td style="text-align:center">animation-iteration-count</td>
<td style="text-align:center">&#x52A8;&#x753B;&#x5FAA;&#x73AF;&#x6B21;&#x6570;</td>
</tr>
<tr>
<td style="text-align:center">animation-duration</td>
<td style="text-align:center">&#x68C0;&#x7D22;&#x6216;&#x8BBE;&#x7F6E;&#x5BF9;&#x8C61;&#x52A8;&#x753B;&#x7684;&#x6301;&#x7EED;&#x65F6;&#x95F4;</td>
</tr>
</tbody>
</table>
<p></p><h3 style="color:red" id="animation&#xFF1A;&#x7F29;&#x5199;">animation&#xFF1A;&#x7F29;&#x5199;</h3>
animation&#xFF1A;&#x540D;&#x5B57; &#x6301;&#x7EED;&#x65F6;&#x95F4;  &#x52A8;&#x753B;&#x8FC7;&#x6E21;&#x901F;&#x5EA6; &#x5EF6;&#x8FDF; &#x64AD;&#x653E;&#x6B21;&#x6570; &#x8FD0;&#x52A8;&#x65B9;&#x5411; &#x6700;&#x7EC8;&#x6548;&#x679C;<p></p>
<pre><code class="lang-css"><span class="hljs-rule"><span class="hljs-attribute">animation</span>:<span class="hljs-value"> trans <span class="hljs-number">3s</span> linear <span class="hljs-number">300ms</span> infinite alternate</span></span>;

<span class="hljs-at_rule">@<span class="hljs-keyword">keyframes</span> trans</span>{
                0%<span class="hljs-rules">{<span class="hljs-rule"><span class="hljs-attribute">opacity</span>:<span class="hljs-value"> <span class="hljs-number">0</span></span></span>; <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">scale</span>(<span class="hljs-number">2</span>)</span></span>;}</span>
                100%<span class="hljs-rules">{<span class="hljs-rule"><span class="hljs-attribute">opacity</span>:<span class="hljs-value"> <span class="hljs-number">1</span></span></span>; <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">scale</span>(<span class="hljs-number">0.5</span>)</span></span>;}</span>
            }
</code></pre>
<h3 id="&#x7ACB;&#x65B9;&#x4F53;">&#x7ACB;&#x65B9;&#x4F53;</h3>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;text1&quot;</span>&gt;</span>
            &#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6D4B;&#x8BD5;&#x52A8;&#x753B;&#x7684;div
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;test2&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;top side&quot;</span>&gt;</span>&#x4E0A;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;front side&quot;</span>&gt;</span>&#x524D;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;buttom side&quot;</span>&gt;</span>&#x4E0B;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;left side&quot;</span>&gt;</span>&#x5DE6;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;right side&quot;</span>&gt;</span>&#x53F3;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;back side&quot;</span>&gt;</span>&#x540E;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
</code></pre>
<pre><code class="lang-css">            <span class="hljs-class">.side</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">100%</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">100%</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">position</span>:<span class="hljs-value"> absolute</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">left</span>:<span class="hljs-value"> <span class="hljs-number">0</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">top</span>:<span class="hljs-value"> <span class="hljs-number">0</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">opacity</span>:<span class="hljs-value"> <span class="hljs-number">0.7</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">text-align</span>:<span class="hljs-value"> center</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">line-height</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">50px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">margin-left</span>:<span class="hljs-value"><span class="hljs-number">300px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">margin-top</span>:<span class="hljs-value"> <span class="hljs-number">300px</span></span></span>;
            }</span>
            <span class="hljs-class">.front</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> red</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">translateZ</span>(<span class="hljs-number">50px</span>)</span></span>;
            }</span>
            <span class="hljs-class">.back</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value">yellow</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">rotateY</span>(<span class="hljs-number">180deg</span>) <span class="hljs-function">translateZ</span>(<span class="hljs-number">50px</span>)</span></span>;
            }</span>
            <span class="hljs-class">.top</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value">green</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">rotateX</span>(<span class="hljs-number">90deg</span>) <span class="hljs-function">translateZ</span>(<span class="hljs-number">50px</span>)</span></span>;
            }</span>
            <span class="hljs-class">.left</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> skyblue</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"><span class="hljs-function">rotateY</span>(-<span class="hljs-number">90deg</span>) <span class="hljs-function">translateZ</span>(<span class="hljs-number">50px</span>)</span></span>;
            }</span>
            <span class="hljs-class">.right</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> orange</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"><span class="hljs-function">rotateY</span>(<span class="hljs-number">90deg</span>) <span class="hljs-function">translateZ</span>(<span class="hljs-number">50px</span>)</span></span>;
            }</span>
            <span class="hljs-class">.buttom</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> deepskyblue</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"><span class="hljs-function">rotateX</span>(-<span class="hljs-number">90deg</span>) <span class="hljs-function">translateZ</span>(<span class="hljs-number">50px</span>)</span></span>;
            }</span>
            <span class="hljs-class">.test2</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">transform-style</span>:<span class="hljs-value"> preserve-<span class="hljs-number">3</span>d</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">position</span>:<span class="hljs-value"> relative</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">animation</span>:<span class="hljs-value"> bb <span class="hljs-number">5s</span> linear infinite</span></span>;
            }</span>
            <span class="hljs-at_rule">@<span class="hljs-keyword">keyframes</span> bb</span>{
                <span class="hljs-tag">to</span><span class="hljs-rules">{
                    <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value"> <span class="hljs-function">rotateY</span>(<span class="hljs-number">360deg</span>) <span class="hljs-function">rotateZ</span>(<span class="hljs-number">360deg</span>)</span></span>;
                }</span>
            }
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../note/css/scss.html" class="navigation navigation-prev " aria-label="Previous page: SCSS"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../note/css/viewport.html" class="navigation navigation-next " aria-label="Next page: viewport"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"anchor-navigation-ex":{"isRewritePageTitle":true,"isShowTocTitleIcon":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
